/*
 * $Id$ 
 */
package com.representqueens.spark.util;

import com.representqueens.spark.SizeParams;

/*
 * Copyright 2011 Rob Whelan for Patients Know Best
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


/**
 * Calculated info about the dataset to be graphed -- grouped in an object
 * so we only need to loop through once.
 * 
 * @author Rob Whelan <rob@patientsknowbest.com>
 * @version $Revision$ $Date$
 */
public class GraphInfo {
	public SizeParams size;
    public boolean rangesFound; // at least one datapoint has ranges
    public boolean singlePoint;
    public Integer firstRangedIndex, lastRangedIndex; // index of first and last datapoints found with ranges
    
    public double xMin, xMax;
    public double yMin, yMax;
    
    public double xScale;
    public double yScale;
}
